Refactor tramp-*-process-file functions
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 11 Jun 2024 12:43:28 +0000 (14:43 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 11 Jun 2024 12:43:28 +0000 (14:43 +0200)
commit5ecff95993d5edbffb27e14c2815d2b23003bcb4
treea74a6b41be7ae32f94d924810ea194696c2fca55
parent4b902f5031e72ae913d69da9f60528f75b6e5860
Refactor tramp-*-process-file functions

* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Don't compute
process name, this is done in `tramp-skeleton-make-process'.

* lisp/net/tramp-adb.el (tramp-adb-handle-process-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-process-file):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file):
Use `tramp-skeleton-process-file'.

* lisp/net/tramp.el (tramp-get-unique-process-name): New defun.
(tramp-skeleton-make-process): Use it.
(tramp-skeleton-process-file): New defmacro.
lisp/net/tramp-adb.el
lisp/net/tramp-sh.el
lisp/net/tramp-sshfs.el
lisp/net/tramp.el